package cn.wolfcode.trip.admin.controller;

import cn.wolfcode.trip.base.domain.SystemMessage;
import cn.wolfcode.trip.base.service.ISystemMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/systemmessage")
public class SystemMessageController {
    @Autowired
    private ISystemMessageService systemMessageService;

    @RequestMapping("/save")
    public String save(SystemMessage entity,Long[] ids){
        systemMessageService.save(entity,ids);
        return "redirect:/user/list.do";
    }
}
